package com.xl.factoryMethodPattern;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class SimpleClient {
    public static void main(String[] args) {
        Logger logger = SimpleLoggerFactory.createLogger("file");
        logger.log("这是一个文件日志记录");
        Logger logger1 = SimpleLoggerFactory.createLogger("database");
        logger1.log("这是一个数据库日志记录");

        List<String> list = new ArrayList<>();
        Iterator<String> iterator = list.iterator();
    }
}
